package com.qf.ssm.pojo;




public class TbStudent implements  Judge{

  private long id;
  private String name;
  private String password;
  private String sex;



  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }


  @Override
  public boolean isEmpty() {
    if (this.name==null||"".equalsIgnoreCase(this.name.trim())){
      return true;
    }
    if (this.password==null||"".equalsIgnoreCase(this.password.trim())){
      return true;
    }
    return false;
  }

  @Override
  public String toString() {
    return "TbStudent{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", password='" + password + '\'' +
            ", sex='" + sex + '\'' +
            '}';
  }
}
